package gitee

import (
	"os"
	"path/filepath"
)

// AppDir todo
func AppDir() string {
	exe, err := os.Executable()
	if err != nil {
		return "."
	}
	exedir := filepath.Dir(exe)
	if filepath.Base(exedir) == "bin" {
		return filepath.Dir(exedir)
	}
	return exedir
}
